package v1

import (
	serviceV1 "chazhou/app/user/srv/internal/service/v1"
	userV1 "chazhou/gen/user/v1"
	"context"
	"google.golang.org/protobuf/types/known/emptypb"
	"log"
)

type user struct {
	userV1.UnimplementedUserServer

	userService serviceV1.IUser
}

func (_ user) CreateUser(ctx context.Context, createUserMessage *userV1.CreateUserMessage) (*emptypb.Empty, error) {
	log.Println("CreateUser ok")
	return new(emptypb.Empty), nil
}

func NewUserServer() userV1.UserServer {
	return &user{
		userService: serviceV1.NewUserServer(),
	}
}
